-- GENERATED SPELL FOR [Hardened Iron Golem] --


function spell0_34190(pUnit, Event) --@Harden Fists,Self--
pUnit:FullCastSpellOnTarget(64877,pUnit)
pUnit:RegisterEvent('Sorts_34190', 12000, 1)
end

function spell1_34190(pUnit, Event) --@Rune Punch,n/a--
pUnit:FullCastSpellOnTarget(64874,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34190', 10301, 1)
end

function spell2_34190(pUnit, Event) --@Rune Punch,n/a--
pUnit:FullCastSpellOnTarget(64967,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34190', 10279, 1)
end

function Sorts_34190(pUnit, Event)
local choix_sorts_34190 = math.random(0, 2)
if choix_sorts_34190 == 0 then
pUnit:RegisterEvent('spell0_34190', 1, 1)
end
if choix_sorts_34190 == 1 then
pUnit:RegisterEvent('spell1_34190', 1, 1)
end
if choix_sorts_34190 == 2 then
pUnit:RegisterEvent('spell2_34190', 1, 1)
end
end

function mob34190_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34190', math.random(1500, 3000), 1)
end

function mob34190_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34190_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34190_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34190, 1, 'mob34190_Action')
RegisterUnitEvent(34190, 2, 'mob34190_Leave')
RegisterUnitEvent(34190, 3, 'mob34190_Kill')
RegisterUnitEvent(34190, 4, 'mob34190_Die')
